package com.jt.conf;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;

/**
 * mybatis分页查询拦截器
 */
@Configuration	//此注解代表是一个配置类
public class MybatisPlusConfig {

	//将分页的拦截器交给spring容器管理
	@Bean
	public PaginationInterceptor paginationInterceptor() {
		return new PaginationInterceptor();
	}
}
